package com.ruoyi.test.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * nacos常量存放的地方
 *
 * @ClassName: YmlConstant
 * @Description: 配置nacos或者Yml的变量，可以使其静态调用
 */
@Configuration
public class YmlConstant {

    //微信appid
    public static String wxAppid;
    //微信appid
    public static String wxSecret;


    @Value("${wx.appid:-1}")
    public void setWxAppid(String val) {
        this.wxAppid = val;
    }

    @Value("${wx.secret:-1}")
    public void setWxSecret(String val) {
        this.wxSecret = val;
    }

}
